package redis

import (
	"cart_srv/appconfig"
	"fmt"
	"github.com/go-redis/redis/v8"
)

var Rdb *redis.Client

func ExampleClient() {
	Rdb = redis.NewClient(&redis.Options{
		Addr:     appconfig.AppConfig.Redis.Host2,
		Password: appconfig.AppConfig.Redis.Password2,
	})
	fmt.Println("redis连接成功")
}
